]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
autorunManager: Catch and log errors from mount-added handler
authorSebastian Keller <skeller@gnome.org>
Tue, 21 Apr 2026 11:58:38 +0000 (13:58 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 23 Apr 2026 13:24:25 +0000 (13:24 +0000)
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9183
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4187>

js/ui/components/autorunManager.js

index 66c7d360add651f0f4783e4220a85a76a260481c..547db805d471114ff69e20e1894789872537fce9 100644 (file)
@@ -132,7 +132,8 @@ class AutorunManager {
 
     enable() {
         this._volumeMonitor.connectObject(
-            'mount-added', this._onMountAdded.bind(this),
+            'mount-added',
+            (monitor, mount) => this._onMountAdded(monitor, mount).catch(logError),
             'mount-removed', this._onMountRemoved.bind(this), this);
     }